package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约自提对象 self_pickup
 *
 * @author ruoyi
 * @date 2024-02-20
 */
public class SelfPickup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 预约姓名 */
    @Excel(name = "预约姓名")
    private String name;

    /** 预约电话 */
    @Excel(name = "预约电话")
    private String tel;

    /** 提货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date thTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 商品名称 */
//    @Excel(name = "商品名称")
    private String goodsName;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNo;

    /* 提货门店id*/
    private Long pickupStore;

    /* 门店名称*/
    private String storeName;

    /*商品数量*/
    private Integer goodsNum;

    public void setGoodsNum(Integer goodsNum){this.goodsNum = goodsNum;}

    public Integer getGoodsNum(){return goodsNum;}

    public void setStoreName(String storeName){this.storeName = storeName;}

    public String getStoreName(){return storeName;}

    public void setPickupStore(Long pickupStore){this.pickupStore = pickupStore;}

    public Long getPickupStore(){return pickupStore;}

    public void setGoodsName(String goodsName){this.goodsName = goodsName;}

    public String getGoodsName(){return goodsName;}

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setTel(String tel)
    {
        this.tel = tel;
    }

    public String getTel()
    {
        return tel;
    }
    public void setThTime(Date thTime)
    {
        this.thTime = thTime;
    }

    public Date getThTime()
    {
        return thTime;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    public String getCardNo()
    {
        return cardNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("tel", getTel())
                .append("thTime", getThTime())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("goodsId", getGoodsId())
                .append("cardNo", getCardNo())
                .toString();
    }
}
